package com.ddtech.business.practice.controller;


import com.ddtech.business.practice.query.PracticeUserAnswerQuery;
import com.ddtech.business.practice.service.PracticeUserAnswerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 练习用户答案 前端控制器
 * </p>
 *
 * @author bin_pu
 * @since 2023-05-26
 */
@Api(tags = "业务-题库练习用户答案")
@RestController
@RequestMapping("/practice/user-answer")
public class PracticeUserAnswerController {
    @Autowired
    private PracticeUserAnswerService practiceUserAnswerService;
    @ApiOperation(value = "查询错题数据")
    @GetMapping(value = "/err-page-list")
    public ResponseEntity getErrorPageList(PracticeUserAnswerQuery practiceUserAnswerQuery) {
        return new ResponseEntity(practiceUserAnswerService.getErrorPageList(practiceUserAnswerQuery), HttpStatus.OK);
    }
}
